/**
 * Copyright (c) 2011-2012
 * OmniCore CodeGuide
 */
package de.tum.in.oose.bumpers.cars;

import java.awt.Image;

/**
 * Fast Car, what else. 
 */
public class FastCar extends Car {
	private static Image defaultFastCarImage;
	
	/**
	 * @return the defaultFastCarImage
	 */
	public static Image getDefaultFastCarImage() {
		return defaultFastCarImage;
	}

	/**
	 * @param defaultFastCarImage the defaultFastCarImage to set
	 */
	public static void setDefaultFastCarImage(Image defaultFastCarImage) {
		FastCar.defaultFastCarImage = defaultFastCarImage;
	}

	/**
	 * @param maxX -
	 * @param maxY -
	 */
	public FastCar(int maxX,
				   int maxY){
		super();
		initiate(maxX, maxY);
	}
	
	/**
	 * @param maxX -
	 * @param maxY -
	 */
	public void initiate(int maxX, int maxY) {
		this.setMinSpeed(5);
		this.setMaxSpeed(10);
		setBody(defaultFastCarImage);
		super.initiate(maxX, maxY);
	}
}

